package com.fary.web.servlet.handler;

import com.fary.web.context.request.ServletWebRequest;
import com.fary.web.servlet.support.RequestContextUtils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Locale;

public class DispatcherServletWebRequest extends ServletWebRequest {

	public DispatcherServletWebRequest(HttpServletRequest request) {
		super(request);
	}

	public DispatcherServletWebRequest(HttpServletRequest request, HttpServletResponse response) {
		super(request, response);
	}

	@Override
	public Locale getLocale() {
		return RequestContextUtils.getLocale(getRequest());
	}

}